<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
        "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
 
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:ui="http://java.sun.com/jsf/facelets"
      xmlns:f="http://java.sun.com/jsf/core"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:a4j="http://richfaces.org/a4j"
      xmlns:rich="http://richfaces.org/rich" >
 
<h:head>
  <title>JSF Demo</title>
</h:head>
<h:body>
  <h:outputScript name="jsf.js" library="javax.faces" target="body">
   </h:outputScript>
  <h1>JSF 2 Demo</h1>
  <h:form>
 
    CPF: <h:inputText id="cpf" readonly="true" value="#{crudBean.pessoa.cpf}"/>  
    
    Nome: <h:inputText id="name" value="#{crudBean.pessoa.nome}"/>
 
    <h:commandButton value="Alterar" action="#{crudBean.alterar}"/>
    
  </h:form>

</h:body>
</html>